-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix huffconfig address #88
Fix huffconfig address #88
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Otherwise, you could use set_broadcast, which would put msg.sender
as owner.
this should prob be merged, but we need to figure out if we are still using the asked this question in the https://discord.com/channels/980519274600882306/981015573104304209/1069326110732603452 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
merging to |
The base branch was changed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Ownable tests were not passing locally because the huffConfig address wasn't the correct one.
This is because this function:
https://github.com/huff-language/foundry-huff/blob/eb9ea316389e8bd580f92908b8454399401d0316/src/HuffDeployer.sol#L10-L12
returns a new HuffConfig each it's called. For a long-term fix I would propose to apply the library to a config contract instead of creating one each time a function from the lib is called.
Here is a similar issue: huff-language/foundry-huff#24